package actions;

import gui.Frame;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;


/**
 * An action for a volunteer to view all of the jobs they are signed up for. 
 * @author Natalie
 *
 */
@SuppressWarnings("serial")
public class ViewMyJobsAction extends AbstractAction {

	private final Frame myFrame;
	
	public ViewMyJobsAction(final Frame theFrame) {
		super("View My Jobs");
		myFrame = theFrame;
	}
	
	/**
	 * Displays the jobs for the current volunteer. 
	 */
	@Override
	public void actionPerformed(final ActionEvent theEvent) {
		myFrame.displayJobsForVolunteer();
	}
}
